package com.my.kq.service;

import com.my.kq.dao.LeaveDao;
import com.my.kq.entity.Leave;

import java.util.List;

public class LesveService {
    private LeaveDao leaveDao=new LeaveDao();
    public List<Leave> leaveList(Integer num) throws Exception {
      List<Leave> list=  leaveDao.leavelist(num);
        return list;
    }

    public int leaveadd(Integer number, String start, String end, String type, String reason, int tshu) throws Exception {

      int num=  leaveDao.leaveadd(number,start,end,type,reason,tshu);
      return num;
    }
}
